<#include "header.ftl">
<link href="${TEMPLATE_PATH}/css/goodslist.css" rel="stylesheet" type="text/css" />
<@shishuo_goods_item_list_tag aliasName="${aliasName}" p="${p?c}"  orderNum="${orderNum}">
<div id="position">您所在的位置：<a href="/">首页</a> > <a href="/goods/${tag_class.aliasName}.htm" title="${tag_class.name}">${tag_class.name}</a></div>
    <div class="w980 mt10 mc">
        <div id="quick_goods" class="mt10">
            <div class="title">快速搜索</div>
            
            <div class="clear"></div>
            <ul>
                <li class="fixed"><strong>按分类：</strong></li>
                <li>
                <dl>
                <dt class="hover"><a href="/goods/${tag_class.aliasName}.htm">不限</a></dt>
                <@shishuo_classes_tag fatherId="${tag_class.id}">
			    	<#list tag_value as classesEntity>
                		<dt><a href="/goods/${classesEntity.aliasName}.htm">${classesEntity.name}</a></dt>
                	</#list>
			    </@shishuo_classes_tag>
                </dl>
                </li>
            </ul>
            <div class="clear"></div>
        </div>
        <div id="quick_order">
            <ul>
                <li class="<#if orderNum==0>hover</#if>"><a href="?orderNum=0">默认排序<img src="${TEMPLATE_PATH}/images/ico_down.gif" width="7" height="8"></a></li>
                <li class="<#if orderNum==1>hover</#if>"><a href="?orderNum=1">销量<img src="${TEMPLATE_PATH}/images/ico_down.gif" width="7" height="8"></a></li>
                <li class="<#if orderNum==2>hover</#if>"><a href="?orderNum=2">价格<img src="${TEMPLATE_PATH}/images/ico_down.gif" width="7" height="8"></a></li>
                <li class="<#if orderNum==3>hover</#if>"><a href="?orderNum=3">人气<img src="${TEMPLATE_PATH}/images/ico_down.gif" width="7" height="8"></a></li>
            </ul>
            <div class="clear"></div>
        </div>
        
        <div id="goodslist">
            <ul>
                <#list tag_goods_item_list.list as goods>
		    		<li>
			    		<a target="_blank" href="${basePath}/goods_redirect/${goods.goodsId?c}.htm" title="${goods.title}">
			    		<img src="${basePath}/collectImg/${aliasName}_${goods.goodsId?c}.jpeg" width="200" 
			    		height="200" border="0" alt="${goods.title}" />
			    		<div class="name">${goods.title}</div>
			    		<div class="price">市场价：<del>￥${goods.productOriginalPrice}</del> 元<br>
			    		会员价：<span>￥${goods.productPrice}</span> 元<br>
			    		返现金：<span>￥${goods.productPrice*goods.productCommission*(SYS_CALLBACK_PERCENT/100)/100}</span> 元</div>
			    		</a>
			    		<a href="${basePath}/goods_item/${goods.goodsId?c}.htm" title="${goods.title}">
			    			<div class="title">${goods.title}</div>
			    		</a>
			    		<div class="isbuy"><span><#if goods.productOriginalPrice==0>0<#else>${goods.productPrice*10/goods.productOriginalPrice}</#if></span>折，已有<span>${goods.productSellTotal}</span>人购买</div>
			    		<div class="addcart" proid="${goods.goodsId?c}">立即购买</div>
		    		</li>
		    	</#list>
            </ul>
            <div class="clear"></div>
            <div class="mt20"></div>
        </div>
        <div class="list_page page_group">${tag_goods_item_list.pageStaticNumHtml}</div>
    </div>
 </@shishuo_goods_item_list_tag>
 
<script>
function listHover(){$(this).addClass('hover').siblings().removeClass('hover');}
$(function()
{	
	$('.hot-goods li').mouseenter(listHover);
	$("#goodslist ul li").hover(function(){							 
		$(".addcart",this).html("立即购买").css("visibility","visible").stop().animate({bottom:"0px",opacity:"1"}, 300);							 
	},function(){
		$(".addcart",this).stop().animate({bottom: "-37px",opacity:"1"}, 300,function(){$(this).css("visibility","hidden")});
	});
	$("#goodslist ul li .addcart").click(function(){
		var id=$(this).attr("proid");
		var that=this;
		window.open("${basePath}/goods_redirect/"+id+".htm");
	});
});
</script>
 
<#include "footer.ftl">